package com.xinsoft.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xinsoft.entity.po.SysRoleMenu;
import com.xinsoft.mapper.SysRoleMenuMapper;
import com.xinsoft.service.SysRoleMenuService;
import org.springframework.stereotype.Service;

/**
* @author xuhb
* @description 针对表【sys_role_menu(角色目录关联表)】的数据库操作Service实现
* @createDate 2023-04-10 11:34:27
*/
@Service
public class SysRoleMenuServiceImpl extends ServiceImpl<SysRoleMenuMapper, SysRoleMenu>
    implements SysRoleMenuService{


    @Override
    public void removeByRoleId(Integer roleId) {
        QueryWrapper queryWrapper = new QueryWrapper();
        queryWrapper.eq("role_id",roleId);
        remove(queryWrapper);
    }
}




